////////////////////////////////////////////////////////////////////////////////
//      
//      Kingsoft File for shp routines file
//      
//      File      : she_path.h
//      Comment   : simple html parser path class
//					
//      Create at : 2012-12-07 10:17:25
//      Create by : chenguicheng
//      
////////////////////////////////////////////////////////////////////////////////

#pragma once
#include <atlpath.h>

class shp_path_hlp
{
public:
	shp_path_hlp()
	{

	}

	~shp_path_hlp()
	{

	}

	static shp_path_hlp& Instance()
	{
		static shp_path_hlp _obj;
		return _obj;
	}

	void set_img_path( LPCTSTR lpszPath )
	{
		TCHAR tszPath[MAX_PATH*2] = {0};
		GetModuleFileName( ModuleHelper::GetModuleInstance(), tszPath, MAX_PATH * 2 * sizeof(TCHAR) );
		m_str_image_path.m_strPath = tszPath;
		m_str_image_path.RemoveFileSpec();
		m_str_image_path.Append( lpszPath );
	}

	CPath get_img_path( )
	{
		return m_str_image_path;
	}

private:

	CPath m_str_image_path;
};